import request from "@/utils/request";

//分页获取列表
export function getPlainPassengerPage(query) {
    return request({
      url: "/plain/ai-plain/plainPassenger/page",
      method: "get",
      params: query,
    });
  }
//获取列表
export function getPlainPassengerList(query) {
    return request({
      url: "/plain/ai-plain/plainPassenger/list",
      method: "get",
      params: query,
    });
  }

//详情
export function getPlainPassengerDetails(query) {
    return request({
      url: "/plain/ai-plain/plainPassenger/details",
      method: "get",
      params: query,
    });
  }

//新增
export function getPlainPassengerAdd(data) {
    return request({
      url: "/plain/ai-plain/plainPassenger/add",
      method: "post",
      data
    });
  }
//更新
export function getPlainPassengerEdit(data) {
    return request({
      url: "/plain/ai-plain/plainPassenger/edit",
      method: "post",
      data
    });
  }

//删除
export function getPlainPassengerDelete(ids) {
    return request({
      url: `/plain/ai-plain/plainPassenger/remove?ids=${ids}`,
      method: "delete"
    });
  }